package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_trade_war_prepare", desc = "商战备战日志", autoSave = true, uploadCk = true)
public class LogTradeWarPrepare extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "战斗类型")
    private int battleType;
    @FieldTypeAnnotation(desc = "对手id")
    private long enemyUserId;
    @FieldTypeAnnotation(desc = "门客id列表")
    private String patronsIdList;
    @FieldTypeAnnotation(desc = "消耗")
    private String consume;
    @FieldTypeAnnotation(desc = "是否跨服")
    private boolean isCross;

    public LogTradeWarPrepare(long userId, int battleType, long enemyUserId, String patronsIdList, String consume, boolean isCross) {
        this.userId = userId;
        this.battleType = battleType;
        this.enemyUserId = enemyUserId;
        this.patronsIdList = patronsIdList;
        this.consume = consume;
        this.isCross = isCross;
    }

    public long getUserId() {
        return userId;
    }

}
